<?php

namespace app\controllers;

use Yii;
use yii\web\Controller;

class TestController extends Controller
{
    public function actionIndex()
    {
        echo 'test';
        $arrA = ['a'=>'1'];
        $arrB = ['a'=>'2'];
        $arr = array_merge($arrA,$arrB);
        var_dump($arr);
        echo  date('ymdHms').str_pad(mt_rand(1,9999),4,'0',STR_PAD_LEFT);
        var_dump(Yii::getAlias('@web'));
        var_dump(Yii::getAlias('@webroot'));
    }
}
